import Vue from 'vue'
import Router from 'vue-router'
import qrCode from '@/components/qrCode'

Vue.use(Router)

export default new Router({
  mode: 'history', // 去掉url中的#
  base: '/auxiliary/',
  routes: [
    {
      path: '/',
      name: 'qrCode',
      component: qrCode
    },
    {
      path: '/server',
      name: 'dataServer',
      component: (resolve) => import('@/components/dataServer'),
    }
  ]
})
